package com.wn.entity;

import javafx.scene.effect.SepiaTone;

import java.util.List;
import java.util.Set;

public class American implements Person{
    @Override
    public void eat() {
        System.out.println("我是美国人，我在人民广场吃炸鸡！");
    }
    String name;//主角名称
    int age,sex;
    Person boy;
    List<Person>  person;//需要被注入的对象属性
    Set <String> friend;

    public Person getBoy() {
        return boy;
    }

    public void setBoy(Person boy) {
        this.boy = boy;
    }

    public American() {
    }

    public Set<String> getFriend() {
        return friend;
    }

    public void setFriend(Set<String> friend) {
        this.friend = friend;
    }


    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public void setPerson(List<Person> person) {
        this.person = person;
    }

    @Override
    public String toString() {
        return "American{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", boy=" + boy +
                ", person=" + person +
                ", friend=" + friend +
                '}';
    }
}
